<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	<h1>dfsdfsdsfds</h1>
	<form enctype="multipart/form-data" method="post"  action="importQuestions" target="frame1">
		<div class="form-group">
            <input id="textfile" class="file" name="textfile" accept="doc|docx|xls|xlsx|txt"  type="file" multiple >
        	<input type="submit" value="上传文件" />
        </div>
	</form>
	<iframe id="frame2" name="frame1" frameborder="0" height="40" style="display:none"></iframe>
	<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
	<script type="text/javascript">
	$(function(){
		$("#frame2").load(function(){
			var tempText=$(this);
			var success=tempText[0].contentDocument.body.textContent;  //从后台传过来的数据，拿到就可以做相应的业务代码了
			alert(success)
		})
	})
	</script>
</body>
</html>